package org.example.ioc.pro7_ioc_lazy;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan
public class TestLazy {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(TestLazy.class);
        context.getBean("orders");
        context.getBean("orders");
    }
}
